package com.cykj.user.service.impl;

import com.cykj.user.domain.SystemCtComplaint;
import com.cykj.user.mapper.SystemCtComplaintMapper;
import com.cykj.user.service.ISystemCtComplaintService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * @BelongsProject: Cykj-Order-System
 * @BelongsPackage: com.cykj.user.service.impl
 * @Author: 阿强
 * @CreateTime: 2025-08-19 02:25
 * @Description: TODO
 * @Version: 1.0
 */


/**
 * 用户申诉Service业务层处理
 *
 * @author 天才少年
 * @date 2025-08-19
 */
@Service
public class SystemCtComplaintServiceImpl implements ISystemCtComplaintService
{
    @Autowired
    private SystemCtComplaintMapper systemCtComplaintMapper;

    /**
     * 查询用户申诉
     *
     * @param complaintId 用户申诉主键
     * @return 用户申诉
     */
    @Override
    public SystemCtComplaint selectSystemCtComplaintByComplaintId(Long complaintId)
    {
        return systemCtComplaintMapper.selectSystemCtComplaintByComplaintId(complaintId);
    }

    /**
     * 查询用户申诉列表
     *
     * @param systemCtComplaint 用户申诉
     * @return 用户申诉
     */
    @Override
    public List<SystemCtComplaint> selectSystemCtComplaintList(SystemCtComplaint systemCtComplaint)
    {
        return systemCtComplaintMapper.selectSystemCtComplaintList(systemCtComplaint);
    }

    /**
     * 新增用户申诉
     *
     * @param systemCtComplaint 用户申诉
     * @return 结果
     */
    @Override
    public int insertSystemCtComplaint(SystemCtComplaint systemCtComplaint)
    {
        return systemCtComplaintMapper.insertSystemCtComplaint(systemCtComplaint);
    }

    /**
     * 修改用户申诉
     *
     * @param systemCtComplaint 用户申诉
     * @return 结果
     */
    @Override
    public int updateSystemCtComplaint(SystemCtComplaint systemCtComplaint)
    {
        return systemCtComplaintMapper.updateSystemCtComplaint(systemCtComplaint);
    }

    /**
     * 批量删除用户申诉
     *
     * @param complaintIds 需要删除的用户申诉主键
     * @return 结果
     */
    @Override
    public int deleteSystemCtComplaintByComplaintIds(Long[] complaintIds)
    {
        return systemCtComplaintMapper.deleteSystemCtComplaintByComplaintIds(complaintIds);
    }

    /**
     * 删除用户申诉信息
     *
     * @param complaintId 用户申诉主键
     * @return 结果
     */
    @Override
    public int deleteSystemCtComplaintByComplaintId(Long complaintId)
    {
        return systemCtComplaintMapper.deleteSystemCtComplaintByComplaintId(complaintId);
    }
}
